{include file="header.html"}
<body>

<div class="navBar">
	<div class="titleView">分类</div>
</div>

<div class="main-top main-bottom category-index">
	{if count($data)>0}
	<ul class="tableView">
		{foreach from=$data name=g item=g}
		<section>
			<header class="ge-bottom ge-light"><a href="wap.php?app=goods&act=index&integral=1&category_id={$g->id}">{$g->name}</a></header>
			<li>
				{if count($g->categories)>0}
				{foreach from=$g->categories name=e item=e}
				<a href="wap.php?app=goods&act=index&integral=1&category_id={$e->id}&title={$e->name}"><div style="background-image:url({$e->pic});"></div><span>{$e->name}</span></a>
				{/foreach}
				{/if}
			</li>
		</section>
		{/foreach}
	</div>
	{/if}
</div>

<div class="footer">
	<a class="ico1" href="wap.php"></a>
	<a class="ico2 this" href="wap.php?app=category&act=index"></a>
	<a class="ico5" href="wap.php?app=member&act=index"></a>
</div>

{include file="footer.html"}
<script>
$(function(){
	$('header').sticky();
});
</script>